package com.spring.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component
public class A implements AInterface {

	public A() {
		System.out.println("A create");
	}

	@Override
	public String aopTest(String name) {
		String result = "name: " + name;
		return result;
	}

	public void aopTest(){
		System.out.println("执行A中的test方法");
	}
}
